Captured-Events
We capture the following events in our system and below table describes the events and data captured along with it
Authentication Events:
NOTE : These Events are captured via Keycloak Events as dicussed in overview.
1. Authentication Events
Serial Number | Event Name | Event Type | Logged Data |
---|---|---|---|
1 | Successful Login | Auth:SuccessfulLogin | DateTime, UserEmail, EventType |
2 | Login Failure | Auth:LoginFailure | DateTime, UserEmail, EventType |
3 | Logout | Auth:Logout | DateTime, UserEmail, EventType |
Sample Log : Login Failure
2025-02-03 16:52:53 2025-02-03 11:22:53,492 WARN [org.keycloak.events] (executor-thread-3) type="LOGIN_ERROR", realmId="2c7e00b2-907d-46f5-9f5e-9cd3a8747228", clientId="ui", userId="06ad90a8-a8f7-4776-aca3-05dbd38ae9ba", ipAddress="192.168.65.1", error="invalid_user_credentials", auth_method="openid-connect", auth_type="code", redirect_uri="http://localhost:3001/", code_id="6a1a9439-ef1f-4c8b-87b2-371ad699698f", username="[email protected]"
Sample Log : Logout Failure
2025-02-03 16:50:46 2025-02-03 11:20:46,919 WARN [org.keycloak.events] (executor-thread-4) type="LOGOUT_ERROR", realmId="2c7e00b2-907d-46f5-9f5e-9cd3a8747228", clientId="ui", userId="null", ipAddress="192.168.65.1", error="invalid_redirect_uri", redirect_uri="http://localhost:3001"
Application Events:
NOTE : These Events are captured via NestJS API as dicussed in overview.
Following Common Event Data Will be present in all the events captured by NestJS API.
Field | Type | Description |
---|---|---|
requestId | string | Unique identifier for the request |
dateTime | Date | The date and time when the event occurred |
userId | string | Unique identifier for the user who made the request |
keycloakUserId | string | Unique identifier for the user in Keycloak who made the request |
userEmail | string | Email address of the user who made the request |
eventType | ApiEventType | Type of the event |
eventMetadata | Dict | Optional Metadata related to the event |
2. Admin Events
Serial Number | Event Name | Event Type | Event Metadata |
---|---|---|---|
1 | IAM Role Assignment | Admin:RoleAssignment | UserId, UserEmail, RolesAssigned |
2 | IAM Role Removal | Admin:RoleRemoval | UserId, UserEmail, RolesAssigned |
3. AI System Events
Serial Number | Event Name | Event Type | Event Metadata |
---|---|---|---|
1 | AI System Connect | AISystem:ConnectAISystem | AISystemId, AISystemName, AISystemType, AISystemOwner |
2 | AI System Remove | AISystem:RemoveAISystem | AISystemId, AISystemName, AISystemType, AISystemOwner |
4. DynamoEval Events
Serial Number | Event Name | Event Type | Event Metadata |
---|---|---|---|
1 | Eval Test Start | Eval:TestStart | TestId, TestType |
2 | Eval Test Failure | Eval:TestFailure | TestId, TestType, TestFailureReason |
3 | Eval Test Completion | Eval:TestCompletion | TestId, TestType |
5. DynamoGuard Events
Serial Number | Event Name | Event Type | Event Metadata |
---|---|---|---|
1 | Analyze Request Response | Guard:Analyze | PolicyMethod |
2 | Policy Creation | Guard:PolicyCreation | PolicyId, PolicyTitle, PolicyMethod, PolicyOwner |
3 | Policy Deletion | Guard:PolicyDeletion | PolicyId, PolicyTitle, PolicyMethod, PolicyOwner |
4 | Policy Creation Review | Guard:PolicyCreation:Review | PolicyId, PolicyTitle, PolicyMethod |
5 | Policy Creation/Manage Train Policy | Guard:PolicyCreation/Manage:TrainPolicy | PolicyId, PolicyTitle, PolicyMethod |
6 | Policy Creation/Manage Train Policy Error | Guard:PolicyCreation/Manage:TrainPolicyError | PolicyId, PolicyTitle, PolicyMethod |
7 | Policy Creation/Manage Success | Guard:PolicyCreation/Manage:Success | PolicyId, PolicyTitle, PolicyMethod |
8 | Manage Policy Training Data Delete | Guard:ManagePolicy:TrainingData:Delete | PolicyId, PolicyTitle, PolicyMethod |
9 | Policy Creation Deployment | Guard:PolicyCreation:Deployment | PolicyId, PolicyTitle, PolicyMethod |
10 | Manage Policy Edit Policy Definition | Guard:ManagePolicy:EditPolicyDefinition | PolicyId, PolicyTitle, PolicyMethod |
11 | Apply Policy | Guard:ApplyPolicy | PolicyId, PolicyTitle, AISystemId, AISystemName, PolicyMethod |
12 | Remove Policy | Guard:RemovePolicy | PolicyId, PolicyTitle, AISystemId, AISystemName, PolicyMethod |